public class phone {
    public String name;
    public int price;
    public  phone(String name,int price){
        this.name=name;
        this.price=price;
    }
    public void callphone(){
        System.out.println("打电话");
    }
    public void gatol(){
        System.out.println("发短信");
    }
    public void print(){
        System.out.println("品牌是："+name+"价格是："+price);
    }
}
